import React from 'react';
import BaseHeader from './BaseHeader';
import getCssPrefix from '@root/lib/getCssPrefix';
const { cssPrefix } = getCssPrefix();
function Header(props) {
    const {
        columns, modifyColumns,
        leftColumns, modifyLeftColumns,
        rightColumns, modifyRightColumns, setMainWidth,
    } = props;
    return (
        <div className={`${cssPrefix}-table-header`} >
            <BaseHeader columns={leftColumns} type="left" modifyColumns={modifyLeftColumns} />
            <BaseHeader columns={columns} type="main" modifyColumns={modifyColumns} setMainWidth={setMainWidth} />
            <BaseHeader columns={rightColumns} type="right" modifyColumns={modifyRightColumns} />
        </div>
    )
}
export default Header;